package OOP.day10.homework.AnimalDemo05;

public class Animal {
    //属性
    public String name;
    public int age;
    public String color;

    //构造器
    public Animal() {
    }

    public Animal(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    //行为
    public void eat(){
        System.out.println("吃东西");
    }
    public void drink(){
        System.out.println("喝水");
    }
}
